import {
	http
} from '@/common/service.js'

/**
 * 申请用款的流程
 */
const askPay = (data) => {
	const {
		payByUser,
		payByReason,
		payMoney,
		payName,
		payChanceId,
		payContractId,
	} = data
	return http.post('/xy/xySysPay/add', {
		payByUser,
		payByReason,
		payMoney,
		payName,
		payChanceId,
		payContractId,
	})
}

/**
 * 获取项目机会列表
 */
const getBussinessChanceList = () => {
	return http.get('/xy/xyBcBussinessChance/list')
}

/**
 * 获取合同列表
 */
const getContractList = () => {
	return http.get('/xy/xyCmContract/list')
}
	
export default {
	askPay,
	getBussinessChanceList,
	getContractList
}
